import { put, all, takeEvery } from 'redux-saga/effects';

function* checkAcount_saga(action) {
    console.log('saga监听1111', action.payload.acount);
    yield put({type: 'SET_HOME_STATE', payload: action.payload})
}

function* checkAcount() {
    yield takeEvery('SET_NUMBER', checkAcount_saga) // 监听的action动作， 以及监听后要出发的函数
}

function* homeRootSaga() {
    yield all([checkAcount()])
}

export default homeRootSaga;